package com.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ActiverecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public ActiverecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAridIsNull() {
            addCriterion("ARID is null");
            return (Criteria) this;
        }

        public Criteria andAridIsNotNull() {
            addCriterion("ARID is not null");
            return (Criteria) this;
        }

        public Criteria andAridEqualTo(Integer value) {
            addCriterion("ARID =", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotEqualTo(Integer value) {
            addCriterion("ARID <>", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridGreaterThan(Integer value) {
            addCriterion("ARID >", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridGreaterThanOrEqualTo(Integer value) {
            addCriterion("ARID >=", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridLessThan(Integer value) {
            addCriterion("ARID <", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridLessThanOrEqualTo(Integer value) {
            addCriterion("ARID <=", value, "arid");
            return (Criteria) this;
        }

        public Criteria andAridIn(List<Integer> values) {
            addCriterion("ARID in", values, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotIn(List<Integer> values) {
            addCriterion("ARID not in", values, "arid");
            return (Criteria) this;
        }

        public Criteria andAridBetween(Integer value1, Integer value2) {
            addCriterion("ARID between", value1, value2, "arid");
            return (Criteria) this;
        }

        public Criteria andAridNotBetween(Integer value1, Integer value2) {
            addCriterion("ARID not between", value1, value2, "arid");
            return (Criteria) this;
        }

        public Criteria andAtidIsNull() {
            addCriterion("ATID is null");
            return (Criteria) this;
        }

        public Criteria andAtidIsNotNull() {
            addCriterion("ATID is not null");
            return (Criteria) this;
        }

        public Criteria andAtidEqualTo(String value) {
            addCriterion("ATID =", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidNotEqualTo(String value) {
            addCriterion("ATID <>", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidGreaterThan(String value) {
            addCriterion("ATID >", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidGreaterThanOrEqualTo(String value) {
            addCriterion("ATID >=", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidLessThan(String value) {
            addCriterion("ATID <", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidLessThanOrEqualTo(String value) {
            addCriterion("ATID <=", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidLike(String value) {
            addCriterion("ATID like", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidNotLike(String value) {
            addCriterion("ATID not like", value, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidIn(List<String> values) {
            addCriterion("ATID in", values, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidNotIn(List<String> values) {
            addCriterion("ATID not in", values, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidBetween(String value1, String value2) {
            addCriterion("ATID between", value1, value2, "atid");
            return (Criteria) this;
        }

        public Criteria andAtidNotBetween(String value1, String value2) {
            addCriterion("ATID not between", value1, value2, "atid");
            return (Criteria) this;
        }

        public Criteria andBegintimeIsNull() {
            addCriterion("BEGINTIME is null");
            return (Criteria) this;
        }

        public Criteria andBegintimeIsNotNull() {
            addCriterion("BEGINTIME is not null");
            return (Criteria) this;
        }

        public Criteria andBegintimeEqualTo(Date value) {
            addCriterion("BEGINTIME =", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeNotEqualTo(Date value) {
            addCriterion("BEGINTIME <>", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeGreaterThan(Date value) {
            addCriterion("BEGINTIME >", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeGreaterThanOrEqualTo(Date value) {
            addCriterion("BEGINTIME >=", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeLessThan(Date value) {
            addCriterion("BEGINTIME <", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeLessThanOrEqualTo(Date value) {
            addCriterion("BEGINTIME <=", value, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeIn(List<Date> values) {
            addCriterion("BEGINTIME in", values, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeNotIn(List<Date> values) {
            addCriterion("BEGINTIME not in", values, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeBetween(Date value1, Date value2) {
            addCriterion("BEGINTIME between", value1, value2, "begintime");
            return (Criteria) this;
        }

        public Criteria andBegintimeNotBetween(Date value1, Date value2) {
            addCriterion("BEGINTIME not between", value1, value2, "begintime");
            return (Criteria) this;
        }

        public Criteria andEndtimeIsNull() {
            addCriterion("ENDTIME is null");
            return (Criteria) this;
        }

        public Criteria andEndtimeIsNotNull() {
            addCriterion("ENDTIME is not null");
            return (Criteria) this;
        }

        public Criteria andEndtimeEqualTo(Date value) {
            addCriterion("ENDTIME =", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotEqualTo(Date value) {
            addCriterion("ENDTIME <>", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeGreaterThan(Date value) {
            addCriterion("ENDTIME >", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("ENDTIME >=", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeLessThan(Date value) {
            addCriterion("ENDTIME <", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeLessThanOrEqualTo(Date value) {
            addCriterion("ENDTIME <=", value, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeIn(List<Date> values) {
            addCriterion("ENDTIME in", values, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotIn(List<Date> values) {
            addCriterion("ENDTIME not in", values, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeBetween(Date value1, Date value2) {
            addCriterion("ENDTIME between", value1, value2, "endtime");
            return (Criteria) this;
        }

        public Criteria andEndtimeNotBetween(Date value1, Date value2) {
            addCriterion("ENDTIME not between", value1, value2, "endtime");
            return (Criteria) this;
        }

        public Criteria andArdescIsNull() {
            addCriterion("ARDESC is null");
            return (Criteria) this;
        }

        public Criteria andArdescIsNotNull() {
            addCriterion("ARDESC is not null");
            return (Criteria) this;
        }

        public Criteria andArdescEqualTo(String value) {
            addCriterion("ARDESC =", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescNotEqualTo(String value) {
            addCriterion("ARDESC <>", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescGreaterThan(String value) {
            addCriterion("ARDESC >", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescGreaterThanOrEqualTo(String value) {
            addCriterion("ARDESC >=", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescLessThan(String value) {
            addCriterion("ARDESC <", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescLessThanOrEqualTo(String value) {
            addCriterion("ARDESC <=", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescLike(String value) {
            addCriterion("ARDESC like", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescNotLike(String value) {
            addCriterion("ARDESC not like", value, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescIn(List<String> values) {
            addCriterion("ARDESC in", values, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescNotIn(List<String> values) {
            addCriterion("ARDESC not in", values, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescBetween(String value1, String value2) {
            addCriterion("ARDESC between", value1, value2, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArdescNotBetween(String value1, String value2) {
            addCriterion("ARDESC not between", value1, value2, "ardesc");
            return (Criteria) this;
        }

        public Criteria andArstateIsNull() {
            addCriterion("ARSTATE is null");
            return (Criteria) this;
        }

        public Criteria andArstateIsNotNull() {
            addCriterion("ARSTATE is not null");
            return (Criteria) this;
        }

        public Criteria andArstateEqualTo(Integer value) {
            addCriterion("ARSTATE =", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateNotEqualTo(Integer value) {
            addCriterion("ARSTATE <>", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateGreaterThan(Integer value) {
            addCriterion("ARSTATE >", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateGreaterThanOrEqualTo(Integer value) {
            addCriterion("ARSTATE >=", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateLessThan(Integer value) {
            addCriterion("ARSTATE <", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateLessThanOrEqualTo(Integer value) {
            addCriterion("ARSTATE <=", value, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateIn(List<Integer> values) {
            addCriterion("ARSTATE in", values, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateNotIn(List<Integer> values) {
            addCriterion("ARSTATE not in", values, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateBetween(Integer value1, Integer value2) {
            addCriterion("ARSTATE between", value1, value2, "arstate");
            return (Criteria) this;
        }

        public Criteria andArstateNotBetween(Integer value1, Integer value2) {
            addCriterion("ARSTATE not between", value1, value2, "arstate");
            return (Criteria) this;
        }

        public Criteria andArsumIsNull() {
            addCriterion("arsum is null");
            return (Criteria) this;
        }

        public Criteria andArsumIsNotNull() {
            addCriterion("arsum is not null");
            return (Criteria) this;
        }

        public Criteria andArsumEqualTo(Integer value) {
            addCriterion("arsum =", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumNotEqualTo(Integer value) {
            addCriterion("arsum <>", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumGreaterThan(Integer value) {
            addCriterion("arsum >", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumGreaterThanOrEqualTo(Integer value) {
            addCriterion("arsum >=", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumLessThan(Integer value) {
            addCriterion("arsum <", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumLessThanOrEqualTo(Integer value) {
            addCriterion("arsum <=", value, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumIn(List<Integer> values) {
            addCriterion("arsum in", values, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumNotIn(List<Integer> values) {
            addCriterion("arsum not in", values, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumBetween(Integer value1, Integer value2) {
            addCriterion("arsum between", value1, value2, "arsum");
            return (Criteria) this;
        }

        public Criteria andArsumNotBetween(Integer value1, Integer value2) {
            addCriterion("arsum not between", value1, value2, "arsum");
            return (Criteria) this;
        }

        public Criteria andResultendtimeIsNull() {
            addCriterion("resultendtime is null");
            return (Criteria) this;
        }

        public Criteria andResultendtimeIsNotNull() {
            addCriterion("resultendtime is not null");
            return (Criteria) this;
        }

        public Criteria andResultendtimeEqualTo(Date value) {
            addCriterion("resultendtime =", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeNotEqualTo(Date value) {
            addCriterion("resultendtime <>", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeGreaterThan(Date value) {
            addCriterion("resultendtime >", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeGreaterThanOrEqualTo(Date value) {
            addCriterion("resultendtime >=", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeLessThan(Date value) {
            addCriterion("resultendtime <", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeLessThanOrEqualTo(Date value) {
            addCriterion("resultendtime <=", value, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeIn(List<Date> values) {
            addCriterion("resultendtime in", values, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeNotIn(List<Date> values) {
            addCriterion("resultendtime not in", values, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeBetween(Date value1, Date value2) {
            addCriterion("resultendtime between", value1, value2, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultendtimeNotBetween(Date value1, Date value2) {
            addCriterion("resultendtime not between", value1, value2, "resultendtime");
            return (Criteria) this;
        }

        public Criteria andResultdescIsNull() {
            addCriterion("resultdesc is null");
            return (Criteria) this;
        }

        public Criteria andResultdescIsNotNull() {
            addCriterion("resultdesc is not null");
            return (Criteria) this;
        }

        public Criteria andResultdescEqualTo(String value) {
            addCriterion("resultdesc =", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescNotEqualTo(String value) {
            addCriterion("resultdesc <>", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescGreaterThan(String value) {
            addCriterion("resultdesc >", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescGreaterThanOrEqualTo(String value) {
            addCriterion("resultdesc >=", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescLessThan(String value) {
            addCriterion("resultdesc <", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescLessThanOrEqualTo(String value) {
            addCriterion("resultdesc <=", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescLike(String value) {
            addCriterion("resultdesc like", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescNotLike(String value) {
            addCriterion("resultdesc not like", value, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescIn(List<String> values) {
            addCriterion("resultdesc in", values, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescNotIn(List<String> values) {
            addCriterion("resultdesc not in", values, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescBetween(String value1, String value2) {
            addCriterion("resultdesc between", value1, value2, "resultdesc");
            return (Criteria) this;
        }

        public Criteria andResultdescNotBetween(String value1, String value2) {
            addCriterion("resultdesc not between", value1, value2, "resultdesc");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}